package com.paobuji.aidebao.myapplication.bean;

/**
 * Created by lenovo on 2017/3/13.
 */

public class AddSportHistory {

    /**
     * code : 0
     * msg : 成功
     * data : {"sportHistoryBean":{"id":1,"userId":2,"sportDate":"20170313","sportTime":2555,"alldis":15.5,"allCor":16.45},"ranking":1,"userBean":{"id":2,"username":"","usersex":"","birth":"","weight":0,"height":0,"userImg":"","userhobby":"","userphone":"123456788","userpass":"555","userfrom":"","channelid":"","allDis":15.5,"allCir":16.45,"allTime":2555}}
     */

    private int code;
    private String msg;
    /**
     * sportHistoryBean : {"id":1,"userId":2,"sportDate":"20170313","sportTime":2555,"alldis":15.5,"allCor":16.45}
     * ranking : 1
     * userBean : {"id":2,"username":"","usersex":"","birth":"","weight":0,"height":0,"userImg":"","userhobby":"","userphone":"123456788","userpass":"555","userfrom":"","channelid":"","allDis":15.5,"allCir":16.45,"allTime":2555}
     */

    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 1
         * userId : 2
         * sportDate : 20170313
         * sportTime : 2555
         * alldis : 15.5
         * allCor : 16.45
         */

        private SportHistoryBeanBean sportHistoryBean;
        private int ranking;
        /**
         * id : 2
         * username :
         * usersex :
         * birth :
         * weight : 0.0
         * height : 0.0
         * userImg :
         * userhobby :
         * userphone : 123456788
         * userpass : 555
         * userfrom :
         * channelid :
         * allDis : 15.5
         * allCir : 16.45
         * allTime : 2555
         */

        private UserBeanBean userBean;

        public SportHistoryBeanBean getSportHistoryBean() {
            return sportHistoryBean;
        }

        public void setSportHistoryBean(SportHistoryBeanBean sportHistoryBean) {
            this.sportHistoryBean = sportHistoryBean;
        }

        public int getRanking() {
            return ranking;
        }

        public void setRanking(int ranking) {
            this.ranking = ranking;
        }

        public UserBeanBean getUserBean() {
            return userBean;
        }

        public void setUserBean(UserBeanBean userBean) {
            this.userBean = userBean;
        }

        public static class SportHistoryBeanBean {
            private int id;
            private int userId;
            private String sportDate;
            private int sportTime;
            private double alldis;
            private double allCor;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public String getSportDate() {
                return sportDate;
            }

            public void setSportDate(String sportDate) {
                this.sportDate = sportDate;
            }

            public int getSportTime() {
                return sportTime;
            }

            public void setSportTime(int sportTime) {
                this.sportTime = sportTime;
            }

            public double getAlldis() {
                return alldis;
            }

            public void setAlldis(double alldis) {
                this.alldis = alldis;
            }

            public double getAllCor() {
                return allCor;
            }

            public void setAllCor(double allCor) {
                this.allCor = allCor;
            }
        }

        public static class UserBeanBean {
            private int id;
            private String username;
            private String usersex;
            private String birth;
            private double weight;
            private double height;
            private String userImg;
            private String userhobby;
            private String userphone;
            private String userpass;
            private String userfrom;
            private String channelid;
            private double allDis;
            private double allCir;
            private int allTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getUsersex() {
                return usersex;
            }

            public void setUsersex(String usersex) {
                this.usersex = usersex;
            }

            public String getBirth() {
                return birth;
            }

            public void setBirth(String birth) {
                this.birth = birth;
            }

            public double getWeight() {
                return weight;
            }

            public void setWeight(double weight) {
                this.weight = weight;
            }

            public double getHeight() {
                return height;
            }

            public void setHeight(double height) {
                this.height = height;
            }

            public String getUserImg() {
                return userImg;
            }

            public void setUserImg(String userImg) {
                this.userImg = userImg;
            }

            public String getUserhobby() {
                return userhobby;
            }

            public void setUserhobby(String userhobby) {
                this.userhobby = userhobby;
            }

            public String getUserphone() {
                return userphone;
            }

            public void setUserphone(String userphone) {
                this.userphone = userphone;
            }

            public String getUserpass() {
                return userpass;
            }

            public void setUserpass(String userpass) {
                this.userpass = userpass;
            }

            public String getUserfrom() {
                return userfrom;
            }

            public void setUserfrom(String userfrom) {
                this.userfrom = userfrom;
            }

            public String getChannelid() {
                return channelid;
            }

            public void setChannelid(String channelid) {
                this.channelid = channelid;
            }

            public double getAllDis() {
                return allDis;
            }

            public void setAllDis(double allDis) {
                this.allDis = allDis;
            }

            public double getAllCir() {
                return allCir;
            }

            public void setAllCir(double allCir) {
                this.allCir = allCir;
            }

            public int getAllTime() {
                return allTime;
            }

            public void setAllTime(int allTime) {
                this.allTime = allTime;
            }
        }
    }
}
